﻿/* 2011/8/1 */

namespace PictureManager
{
    /// <summary>
    /// An item which can be added to ComboBox. It contains a text to be shown and some data.
    /// </summary>
    class ComboBoxItem
    {
        private string _text;

        private object _value;

        public ComboBoxItem(string text)
        {
            _text = text;
        }

        public ComboBoxItem(string text, object value)
        {
            _text = text;
            _value = value;
        }

        public override string ToString() 
        { 
            return _text; 
        }

        public string Text 
        { 
            get
            { 
                return _text;
            }

            set
            {
                _text = value;
            }
        }

        public object Value
        {
            get
            {
                return _value;
            }
            set
            {
                _value = value;
            }
        }
    }
}
